package com.tuanzi.loan.web.lazy.galaxycard;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.galaxycard.GalaxyCardPromoteUserRelateChannelService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.galaxycard.GalaxyCardPromoteUserRelateChannelRequest;
import com.tuanzi.loan.vo.response.galaxycard.GalaxyCardPromoteUserRelateChannelResponse;

public class GalaxyCardPromoteUserRelateChannelLazyDataModel extends BaseLazyDataModel<GalaxyCardPromoteUserRelateChannelRequest, GalaxyCardPromoteUserRelateChannelResponse> {

	
	private static final long serialVersionUID = 4894975204697596886L;
	
	private GalaxyCardPromoteUserRelateChannelService galaxyCardPromoteUserRelateChannelService = SpringContextHolder.getBean(GalaxyCardPromoteUserRelateChannelService.class);

	public GalaxyCardPromoteUserRelateChannelLazyDataModel(GalaxyCardPromoteUserRelateChannelRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<GalaxyCardPromoteUserRelateChannelResponse> doLoad(
			PageSearcher<GalaxyCardPromoteUserRelateChannelRequest> pageSearcher) {
		return galaxyCardPromoteUserRelateChannelService.list(pageSearcher);
	}

}
